function removeAttension(myid,targetid,obj){
		if(myid===null || myid==='' || myid===0){
			triggerLogin();
			return;
		}
		var data = {myid:myid,targetid:targetid};
		$.ajax({    
	        type: "post",  
	        url:"user/remove-attension.json",
	        contentType : 'application/json',
            data:JSON.stringify(data),
            dataType:'json',
	        success: function(response){
				if(response.ok){
					var li = $(obj).parent().html('<a class="btn btn-small btn-success" onclick="addAttension('+myid+','+targetid+',this)"><i class="icon-plus icon-white"></i>关注</a>');
				}else{
					alert(response.msg);
				}
	        },
	        error: function(e){}
		});
	}
	
	function addAttension(myid,targetid,obj){
		if(myid===null || myid==='' || myid===0){
			triggerLogin();
			return;
		}
		var data = {myid:myid,targetid:targetid};
		$.ajax({    
	        type: "post",  
	        url:"user/add-attension.json",
	        contentType : 'application/json',
            data:JSON.stringify(data),
            dataType:'json',
	        success: function(response){
				if(response.ok){
					var htmlstr = '<a class="btn btn-small" onclick="removeAttension('+myid+','+targetid+',this)">取消关注</a>';
					var div = $(obj).parent().html(htmlstr);
				}else{
					alert(response.msg);
				}
	        },
	        error: function(e){}
		});
	}